# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

_author=RCLAMP
_perlmod=Algorithm-GenerateSequence
pkgname=perl-algorithm-generatesequence
pkgver=0.02
pkgrel=13
pkgdesc='A sequence generator.'
arch=('any')
url='http://www.cpan.org/authors/id/R/RC/RCLAMP/'
license=('GPL' 'PerlArtistic')
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/R/RC/$_author/$_perlmod-$pkgver.tar.gz")
sha512sums=('bb8ddd9426def5d298a8da115dec827464ea764432d72cf4c426d1f4583ec637570d9bac745479f49741b6a67f67d4aab84eef92a3f5f5ce2f638bb10d0b04a9')

prepare() {
  cd "$_perlmod-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
  cd "$_perlmod-$pkgver"

  make
}

package() {
  cd "$_perlmod-$pkgver"

  make install DESTDIR="$pkgdir"
}

